/**
 * @(#)com.pattern.p_03_decorated.coffee.SoftTest
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_03_decorated.coffee;

import com.pattern.p_03_decorated.coffee.c.ShortBlack;
import com.pattern.p_03_decorated.coffee.d.Milk;
import com.pattern.p_03_decorated.coffee.d.Soy;

/**
 * @author fusf
 * @version 1.0  2016/11/10
 */
public class OrderTest {

    public static void main(String[] args) {
        Drink order = new ShortBlack();
        order = new Milk(order);
        order = new Soy(order);
        order = new Milk(order);
        System.out.println(order.getDescription());
        System.out.println(order.cost());
    }
}
